package com.itlong.cloud.common.property;

import com.itlong.cloud.POJO.PO.TimeTaskParkingErrorOrderPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <desc>
 *      停车场业务指令结果信息业务处理暴露接口
 * </desc>
 *
 * @createDate 2018/11/15
 */
@FeignClient(name = "common-service")
public interface ITimeTaskParkingErrorOrderServiceClient {
    /**
     * <desc>
     *      添加执行结果
     * </desc>
     *
     * @param po
     * @return
     * @author Jiaqi.X
     * @createDate 2018/11/15
     */
    @PostMapping(path = "/property/parking/common/save")
    Integer save(@RequestBody TimeTaskParkingErrorOrderPO po) throws Exception;

    /**
     * <desc>
     *      获取执行失败的指令
     * </desc>
     *
     * @return
     * @author Jiaqi.X
     * @createDate 2018/11/15
     */
    @PostMapping(path = "/property/parking/common/getUntreatedErrors")
    List<TimeTaskParkingErrorOrderPO> getUntreatedErrors();

    /**
     * <desc>
     *      将处理状态改为已处理
     * </desc>
     *
     * @param errorIds
     * @return
     * @author Jiaqi.X
     * @create 2018/11/15
     */
    @PostMapping(path = "/property/parking/common/setDataStatusSuccess")
    Integer setDataStatusSuccess(String errorIds);
}
